package com.example.myproject.repository;


import com.example.myproject.model.BountyContribution;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BountyContributionRepository extends JpaRepository<BountyContribution, Long> {

    // 查询某用户追加的所有悬赏记录
    List<BountyContribution> findAllByContributorId(Long contributorId);
    //bounty下的所有悬赏记录
    List<BountyContribution> findByBountyId(Long bountyId);

}